package com.hr;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class DayWorkTimes {
	public Date getDay() {
		return day;
	}
	public void setDay(Date day) {
		this.day = day;
	}
	public List<TimeRange> getWorkTimes() {
		return workTimes;
	}
	public void setWorkTimes(List<TimeRange> workTimes) {
		this.workTimes = workTimes;
	}
	public List<TimeRange> safeWorkTimes() {
		if (workTimes == null) {
			workTimes = new ArrayList<TimeRange>();
		}
		
		return workTimes;
	}
	
	private Date day;
	List<TimeRange> workTimes;
}
